package com.itheima.Demo01.demo02;

import java.util.Calendar;
import java.util.Scanner;

public class DateTest02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Calendar C = Calendar.getInstance();
        C.set(s,11,31);
        int i = C.get(Calendar.DAY_OF_YEAR);
        if (i==366){
            System.out.println("闰年");
        }else {
            System.out.println("平年");
        }
    }
}
